package com.fz.service;

import com.fz.controller.request.BaseRequest;
import com.fz.pojo.Borrow;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface BorrowService {
    List<Borrow> list();

    //分页
    PageInfo<Borrow> page(BaseRequest baseRequest);

    //添加图书
    void addBorrow(Borrow borrow);

    //通过id查询图书
    Borrow getById(Integer id);

    void update(Borrow borrow);

    void deleteById(Integer id);


}
